@layout("/common/_form.html",{js:["/assets/materiel/materiel_edit.js"]}){

<form class="layui-form" id="materielForm" lay-filter="materielForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="materielId" type="hidden"/>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">名字</label>
                        <div class="layui-input-block">
                            <input id="title" name="title" placeholder="请输入名字" type="text" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">类型</label>
                        <div class="layui-input-block">
                            <input id="type" name="type" type="hidden" class="layui-input"/>
                            <select name="type" id="typeSelect"
                                    lay-filter="typeSelect">

                            </select>
                        </div>
                    </div>
<!--                    <div class="layui-inline layui-col-md6">-->
<!--                        <label class="layui-form-label">来源</label>-->
<!--                        <div class="layui-input-block">-->
<!--                            <select name="source" id="sourceSelect"-->
<!--                                    lay-filter="sourceSelect">-->
<!--                                <option value="0" selected>进货</option>-->
<!--                                <option value="1">自产</option>-->
<!--                            </select>-->
<!--                        </div>-->
<!--                    </div>-->
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">单价</label>
                        <div class="layui-input-block">
                            <input id="price" name="price" placeholder="请输入单价，如：100" type="text" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">数量</label>
                        <div class="layui-input-block">
                            <input id="number" name="number" placeholder="不能直接输入数量" type="text" class="layui-input" disabled/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">单位</label>
                        <div class="layui-input-block">
                            <input id="unit" name="unit" placeholder="请输入单位，如：kg" value="g" type="tel" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">重量</label>
                        <div class="layui-input-block">
                            <input id="specs" name="specs" placeholder="请输入重量，如：100.0" type="text" class="layui-input" />
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">物料编码</label>
                        <div class="layui-input-block">
                            <input id="materielCode" name="materielCode" placeholder="请输入物料编码" type="text" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">购买编码</label>
                        <div class="layui-input-block">
                            <input id="buyCode" name="buyCode" placeholder="请输入购买编码" type="text" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">批号</label>
                        <div class="layui-input-block">
                            <input id="batchNumber" name="batchNumber" placeholder="请输入批号" type="text" class="layui-input" />
                        </div>
                    </div>

                    <div class="layui-inline layui-col-md6">
                        <label class="layui-form-label">备注</label>
                        <div class="layui-input-block">
                            <input id="remark" name="remark" placeholder="请输入备注" type="text" class="layui-input" />
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" type="button" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" id="backupPage">&emsp;返回&emsp;</button>
    </div>

</form>

@}